package com.wanmait.baohan.mapper;

import com.wanmait.baohan.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    Set<String> selectAllRolesByStaffId(Integer id);

    List<Role> selectFindAll();
    List<Role> selectAllRolesByStaffId2(@Param("id") Integer id);
}